package com.demo.test.dao;

import java.util.List;

import com.demo.test.model.User;

public class UserDao {
	public List<User> load(){
		//Page<User> users = User.dao.paginate(1, 5, "select * from users", "where id >5");
		return User.dao.find("select * from users");
	}
	
	public void save(User user){
		user.save();
	}
	
	public void deleteById(int id){
		User.dao.deleteById(id);
	}

}
